import React, { Component } from 'react'
import Checket from './Checket'
import Item from './Item'
interface IProps{
    item:any,
}
export class Group extends Component<IProps> {
    render() {
        return (
            <div className="group">
               <h3><Checket/>{this.props.item.groupName}</h3>
               {
                   this.props.item.list.map((item:any,index:number)=>{
                       return  <Item
                        key={index}
                        item={item}
                       />
                   })
               }
                <p>商家包邮</p>
            </div>
        )
    }
}

export default Group
